<?php
class WebUser extends CWebUser
{
   public function getIsAdmin()
   {
       return $this->getState("acesso") === "1";
   }
   
   public function getIsUser()
   {
       return $this->getState("acesso") === "0";
   }
}
?>
